/*================================================================
*   Copyright (C) 2023 IEucd Inc. All rights reserved.
*   
*   文件名称：ex22.c
*   创 建 者：szmoto, szmoto@vip.qq.com
*   创建日期：2023年06月15日
*   描    述：
*
================================================================*/

#include <stdio.h>
#include "ex22.h"
#include "dbg.h"

int THE_SIZE = 1000;

static int THE_AGE = 37;

int get_age()
{
	return THE_AGE;
}

void set_age(int age)
{
	THE_AGE = age;
}

double update_ratio(double new_ratio)
{
	static double ratio = 1.0;
	
	double old_ratio = ratio;
	ratio = new_ratio;

	return old_ratio;
}

void print_size()
{
	log_info("I think size is: %d",THE_SIZE);
}
